<template>
  <div class="categoryList">
    <ul>
      <li v-for="item in goodslist" :key="item.id">
        <img v-lazy="item.list_pic_url" alt="" />
        <div>{{ item.name }}</div>
        <p class="p1">{{ item.retail_price | formatMoney }}</p>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: "",
  props: ["goodslist"],
  data() {
    return {
      goodsList: [],
    };
  },
  computed: {},
  components: {},
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style lang="less" scoped>
.categoryList {
  ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: space-between;
    li {
      width: 50%;
      padding-bottom: 20px;
      img {
        width: 100%;
      }
      div,
      p {
        font-size: 16px;
        text-align: center;
        padding: 5px 0;
      }
      .p1 {
        height: 24px;
        line-height: 24px;
        color: #8b0000;
      }
    }
  }
}
</style>
